const { func1 } = require('../class/func1')
const { func2 } = require('../class/func2')

function Router (path, req, res) {
  switch (path) {
    case '/func1':
      new func1(req, res)
      break
    case '/func2':
      new func2(req, res)
      break
    default:
      console.log('404')
  }
}

module.exports = {
  Router
}
